From: Jan Djärv Date: Wed, 25 Nov 2009 17:53:54 +0000 (+0000) Subject: (delete_tty): Remove check for last terminal (bug#4970). X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~9257 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=1857569af70493e9dcd446c8bfb029096b355593;p=emacs.git (delete_tty): Remove check for last terminal (bug#4970). --- diff --git a/src/ChangeLog b/src/ChangeLog index 32f885b6a4f..edc3a32c497 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2009-11-25 Jan Djärv + * term.c (delete_tty): Remove check for last terminal (bug#4970). + * xsettings.c: Revert changes from 2009-11-23. Just use Xft defaults (bug #5025). diff --git a/src/term.c b/src/term.c index d860a932357..fda06d6b2ed 100644 --- a/src/term.c +++ b/src/term.c @@ -3951,8 +3951,6 @@ static void delete_tty (struct terminal *terminal) { struct tty_display_info *tty; - Lisp_Object tail, frame; - int last_terminal; /* Protect against recursive calls. delete_frame in delete_terminal calls us back when it deletes our last frame. */ @@ -3964,19 +3962,6 @@ delete_tty (struct terminal *terminal) tty = terminal->display_info.tty; - last_terminal = 1; - FOR_EACH_FRAME (tail, frame) - { - struct frame *f = XFRAME (frame); - if (FRAME_LIVE_P (f) && (!FRAME_TERMCAP_P (f) || FRAME_TTY (f) != tty)) - { - last_terminal = 0; - break; - } - } - if (last_terminal) - error ("Attempt to delete the sole terminal device with live frames"); - if (tty == tty_list) tty_list = tty->next; else